package com.video.video.domain;

import com.video.common.core.domain.BaseEntity;
import java.math.BigDecimal;
import com.video.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单下载记录对象 d_order_record
 *
 * @author ruoyi
 * @date 2022-09-27
 */
public class DOrderRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 会员id */
    @Excel(name = "会员id")
    private String uid;

    /** 商品id */
    @Excel(name = "商品id")
    private String gid;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodName;

    /** 售价金额 */
    @Excel(name = "售价金额")
    private BigDecimal sellPrice;

    /** 实际支付金额 */
    @Excel(name = "实际支付金额")
    private BigDecimal payAmount;

    /** 会员折扣比例 */
    @Excel(name = "会员折扣比例")
    private BigDecimal userRate;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setUid(String uid)
    {
        this.uid = uid;
    }

    public String getUid()
    {
        return uid;
    }
    public void setGid(String gid)
    {
        this.gid = gid;
    }

    public String getGid()
    {
        return gid;
    }
    public void setGoodName(String goodName)
    {
        this.goodName = goodName;
    }

    public String getGoodName()
    {
        return goodName;
    }
    public void setSellPrice(BigDecimal sellPrice)
    {
        this.sellPrice = sellPrice;
    }

    public BigDecimal getSellPrice()
    {
        return sellPrice;
    }
    public void setPayAmount(BigDecimal payAmount)
    {
        this.payAmount = payAmount;
    }

    public BigDecimal getPayAmount()
    {
        return payAmount;
    }
    public void setUserRate(BigDecimal userRate)
    {
        this.userRate = userRate;
    }

    public BigDecimal getUserRate()
    {
        return userRate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("gid", getGid())
            .append("goodName", getGoodName())
            .append("sellPrice", getSellPrice())
            .append("payAmount", getPayAmount())
            .append("userRate", getUserRate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
